from django.http import HttpResponse

# Create your views here.
from django.views import View


class DemoView(View):
    '''
    类视图的 demo
    '''
    def get(self, request):
        '''
        get 方法
        :param request:
        :return:
        '''
        return HttpResponse('这是 get 方法')

    def post(self, request):
        '''
        post 方法
        :param request:
        :return:
        '''
        return HttpResponse('这是 post 方法')